#ifndef KEYINFO_H_INCLUDED
#define KEYINFO_H_INCLUDED

class KeyInfo
{
public:
    wxColour fg,bg;
    int flag,id;
    KeyInfo(wxColour a,wxColour b,int f = 0)
    {
        static int idCnt = 0;
        fg = a, bg = b, flag = f, id = idCnt++;
    }
    wxString ToHtmlStyleTag()
    {
        return wxString::Format(_("span.cv%d{\r\ncolor:rgb(%d,%d,%d);\r\nbackground-color:rgb(%d,%d,%d);\r\n}"),
                               id,fg.Red(),fg.Green(),fg.Blue(),bg.Red(),bg.Green(),bg.Blue());
    }
    //KeyInfo(){}
    static KeyInfo Random()
    {
        return KeyInfo(wxColour(rand()%256,rand()%256,rand()%256),
                       wxColour(rand()%256,rand()%256,rand()%256));
    }
};

#endif // KEYINFO_H_INCLUDED
